<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/common/topBegin.jsp"%>
<link rel="stylesheet" type="text/css" href="${ctx}/js/public/Validform/css/Validform.css"/>
<link rel="stylesheet" type="text/css" href="${ctx}/js/public/Validform/css/right_yz.css"/>
 <script type="text/javascript" src="${ctx}/js/jquery-1.7.1.min.js"></script>
 <script language="JavaScript" type="text/javascript" src="${ctx}/js/public/Validform/Validform_v5.3.2.js"></script>
 <script language="JavaScript" type="text/javascript" src="${ctx}/js/public/Validform/right_Validform_v5.3.2_config.js"></script>
 <script type="text/javascript" src="${ctx}/js/ajaxfileupload.js"></script>
 <script type="text/javascript" src="${ctx}/js/extjs/ext-base.js"></script>
<script type="text/javascript" src="${ctx}/js/extjs/ext-all.js"></script>
<script type="text/javascript" src="${ctx}/js/extjs/ui/ext-ui.js"></script>
<script type="text/javascript" src="${ctx}/js/public/console.js"></script>
<script type="text/javascript" src="${ctx}/js/extjs/ux/Toast.js"></script>
<script>
var cfg = {cxt:'${ctx}'};
<c:if test="${not empty entity}">
	<c:set var="url" value="shipper/update.action"/>
</c:if>
<c:if test="${ empty entity}">
<c:set var="url" value="shipper/add.action"/>
</c:if>
</script>
</head>
<body>
<div  id="table_form_div" class="table_form1">
<form  action="${ctx}/${url}" method="post" id="formobj" enctype="multipart/form-data">
 <input type="hidden" id="subBtn"   />
 <input type="hidden" id="backTip"  value="操作成功" />
  <table class="table-form" width="100%">
   <tbody>
      <tr>
	       <td width="15%" class="table-th">托运单位<font color="red">*</font></td>
	       <td class="table-td" colspan="3">
	       		<input type="hidden" id="companyId" name="company.id" value="${entity.company.id }" />
	           <input type="hidden" id="copmanyName"   value="${entity.company.name }" />
	       		<span id="sp_company"/>
	       </td>
	  <tr>
	       <td width="15%" class="table-th">联系人<font color="red">*</font></td>
	        <td class="table-td" width="35%">
	           <input type="text" id="contractor"  class="input-text" style="width:90%;" name="contractor" value="${entity.contractor}" maxlength="16"   datatype="*" />
	       </td>
	       
	       <td rowspan="8" colspan="2" " align="center"><br>
	       	<div>
		         <img src="<c:if test='${not empty entity.idnoImg}'>${ctx}/upload/${entity.idnoImg}</c:if>
		         <c:if test='${empty entity.idnoImg}'>${ctx}/images/organ/nophoto.gif </c:if>" id="img_photo" style="width: 60%; height: auto;"><br>
		         <input type="file"  id="photoFile" name="file" style="display:none" />
		         <input type="hidden" name="idnoImg" id="hid_photo"  value="${entity.idnoImg }" />
	         </div>
	         <div id="idnoImg_div"></div>
			</td>
	  </tr>
	   <tr>
           <td  width="15%" class="table-th">联系人身份证</td>
	       <td class="table-td"  width="35%"> 
	       	<input type="text" id="contractorIdno"  class="input-text" style="width:90%;" name="contractorIdno" value="${entity.contractorIdno}" maxlength="18"   datatype="idcard" ignore="ignore"  />
	       </td>
      </tr>
      <tr>
           <td width="15%" class="table-th">联系人电话</td>
           <td class="table-td"  width="35%">
           		<input type="text" id="contractPhone"  class="input-text" name="contractPhone"  style="width:90%;" value="${entity.contractPhone}" maxlength="16" datatype="m|phone"/>
            </td>
          
      </tr>
      <tr>
           <td width="15%" class="table-th">办公室电话</td>
           <td class="table-td"  width="35%">
           		<input type="text" id="officePhone"  class="input-text" name="officePhone"  style="width:90%;" value="${entity.officePhone}" maxlength="16" datatype="m|phone"/>
            </td>
      </tr>
      <tr>
      	 <td  width="15%" class="table-th">状态</td>
           <td class="table-td"  width="35%">
           		<select id='status' name='status'  style="width:80%;">
	        	  	<option value='' >-----请选择-----</option>
	        	    <option value="1" <c:if test="${entity.status==1 }"> selected="selected" </c:if>  >正常 </option>
	        	   <option value="1" <c:if test="${entity.status==2 }"> selected="selected" </c:if>>暂停 </option>	 
		         </select>
           </td>
      </tr>
      <tr>
      	 <td  width="15%" class="table-th">开户银行</td>
           <td class="table-td"  width="35%">
           		<input type="text" id="bankAccount"  class="input-text" style="width:90%;" name="bankAccount" value="${entity.bankAccount}" maxlength="32"   datatype="*" ignore="ignore" />
           </td>
      </tr>
	  
      <tr>
	       <td  width="15%" class="table-th">开户户主</td>
           <td class="table-td"  width="35%">
           		<input type="text" id="accountName"  class="input-text" style="width:90%;" name="accountName" value="${entity.accountName}" maxlength="32"   datatype="*" ignore="ignore" />
           </td>
      </tr>
     <tr>
	       <td  width="15%" class="table-th">开户账号</td>
           <td class="table-td"  width="35%">
           		<input type="text" id="accountNum"  class="input-text" style="width:90%;" name="accountNum" value="${entity.accountNum}" maxlength="32"   datatype="*" ignore="ignore" />
           </td>
      </tr>
     <tr>
      <td width="15%" class="table-th">托运地址<font color="red">*</font></td>
	       <td class="table-td" colspan="3">
	           <textArea id="address"  class="textarea" style="width:90%;" cols="95" rows="3" name="address"  maxlength="100"   datatype="*" >${entity.address }</textArea>
	       </td>
     </tr>
     <tr>
      <td width="15%" class="table-th">备注</td>
	       <td class="table-td" colspan="3">
	           <textArea id="remark"  class="textarea" style="width:90%;" cols="95" rows="6" name="remark"  maxlength="500" >${entity.remark }</textArea>
	       </td>
     </tr>
	 </tbody>
  </table>
   <input type="hidden" id="id"  name="id" value="${entity.id}" />
  </form>
  </div>
  <script type="text/javascript" src="${ctx}/js/app-web/biz/shipper/shipperForm.js"></script>
  </body>
  </html>
  